package com.xoa.controller.login;

import com.xoa.service.url.MainstrBackUrlService;
import com.xoa.util.ToJson;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;

/**
 * @author URL
 * @date 2018/7/20 16:12
 * @desc
 */
@Controller
@RequestMapping("/longin")
public class LoginUrlController {

    @Resource
    MainstrBackUrlService mainstrBackUrlService;

    @ResponseBody
    @RequestMapping("/mainstrBackUrl")//  /longin/mainstrBackUrl
    public ToJson mainstrBackUrl(HttpServletRequest request){
        return mainstrBackUrlService.mainstrBackUrl(request);
    }

}
